package com.app.service.impl;

import com.app.common.Result;
import com.app.model.TbcBank;
import com.app.mapper.TbcBankMapper;
import com.app.service.ITbcBankService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yoominic
 * @since 2024-09-04
 */
@Service
public class TbcBankServiceImpl extends ServiceImpl<TbcBankMapper, TbcBank> implements ITbcBankService {

    @Autowired
    private TbcBankMapper tbcBankMapper;
    @Override
    public Result getTBCBankList() {
        List<TbcBank> tbcBanks = tbcBankMapper.selectList(new QueryWrapper<TbcBank>());
        return Result.success(tbcBanks);
    }
}
